#include <iostream>
#include <string.h>
#include <vector>
using namespace std;

#ifndef STRINGHELP_H
#define STRINGHELP_H

class StringHelp
{
public:
	static vector<string> Split(char c, string s)
	{
		vector<string> list;
		string temp;
		for (unsigned int i = 0; i < s.size(); i++)
		{
			if (s[i] != c)
			{
				temp += s[i];
			}
			else
			{
				list.push_back(temp);
				temp.clear();
			}
			
		}
		list.push_back(temp);
		return list;
	}

	static void Sort(vector<string>& list)
	{
		int i;
		i = 0;
	}

	static void ToLowerCase(string s)
	{
		const int lastChar = 90;
		const int diff = 32;
		for (unsigned int i = 0; i < s.size(); i++)
		{
			if ( (int)s[i] < lastChar)
			{
				s[i] = s[i] += diff;
			}
		}
	}

	static void ToUpperCase(string s)
	{
		const int lastChar = 90;
		const int diff = 32;
		for (unsigned int i = 0; i < s.size(); i++)
		{
			if ( (int)s[i] > lastChar)
			{
				s[i] = s[i] -= diff;
			}
		}
	}

};


#endif